package org.lanqiao.tjut.bean;

import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class UsersEntity {
	// 暂时保持数据库字段名和pojo类实体对象的属性字段名保持一致
	private Integer userid;
	private String username;
	private int userage;
	private String useraddress;
	// 组合一个实例变量
	// get/set方法    注解？？
	private ContactInfoBean contactInfoB;
	
	// 组合  list对象集合
	private List<ContactInfoBean> lstContactInfoB;
	
	// 组合  map集合  键值对
	private Map<String,ContactInfoBean> mapContactInfoB;
	
	// 组合  set对象集合
	private Set<ContactInfoBean> setContactInfoB;
	
	
	public Set<ContactInfoBean> getSetContactInfoB() {
		return setContactInfoB;
	}

	public void setSetContactInfoB(Set<ContactInfoBean> setContactInfoB) {
		//手动初始化
		//两个
		setContactInfoB = new LinkedHashSet<ContactInfoBean>();
		
		setContactInfoB.add(new ContactInfoBean());
		setContactInfoB.add(new ContactInfoBean());
		
		this.setContactInfoB = setContactInfoB;
		
	}

	
	
	public Map<String, ContactInfoBean> getMapContactInfoB() {
		return mapContactInfoB;
	}

	public void setMapContactInfoB(Map<String, ContactInfoBean> mapContactInfoB) {
		this.mapContactInfoB = mapContactInfoB;
	}

	public List<ContactInfoBean> getLstContactInfoB() {
		return lstContactInfoB;
	}

	public void setLstContactInfoB(List<ContactInfoBean> lstContactInfoB) {
		this.lstContactInfoB = lstContactInfoB;
	}

	public ContactInfoBean getContactInfoB() {
		return contactInfoB;
	}

	public void setContactInfoB(ContactInfoBean contactInfoB) {
		this.contactInfoB = contactInfoB;
	}

	public Integer getUserid() {
		return userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public int getUserage() {
		return userage;
	}

	public void setUserage(int userage) {
		this.userage = userage;
	}

	public String getUseraddress() {
		return useraddress;
	}

	public void setUseraddress(String useraddress) {
		this.useraddress = useraddress;
	}

	@Override
	public String toString() {
		return "UsersEntity [userid=" + userid + ", username=" + username + ", userage=" + userage + ", useraddress="
				+ useraddress + "]";
	}

}
